package com.dm.cloud.auth.controller.defalut;

import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.tkmybatis.service.EntityBaseController;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.dm.cloud.auth.common.po.AuthOrg;
import com.dm.cloud.auth.common.dto.AuthOrgDTO;
import com.dm.cloud.auth.common.request.AuthOrgSearchRequest;
import com.dm.cloud.auth.service.AuthOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
   * @author hcx
   * @type AuthOrgController.java
   * @desc 组织机构表 AuthOrg controller
   */
@RestController
@RequestMapping("/apis/v1/authOrg")
@Tag(name =  "组织机构表  AuthOrgcontroller")

public class AuthOrgController extends EntityBaseController<AuthOrgSearchRequest, AuthOrg, AuthOrgDTO> {


    @Autowired
    private AuthOrgService authOrgService;
    @Override
    public AuthOrg getEntity() {
        return new AuthOrg();
    }

    @Override
    public AuthOrgDTO getDTO() {
        return new AuthOrgDTO();
    }
    @Override
    public BaseEntityService<AuthOrgSearchRequest, AuthOrg> getService() {
        return authOrgService;
    }


}
